﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QD.SyncServers
{
    public partial class BaseFrm : Form
    {
        protected static bool ApplicationExit = true;

        public BaseFrm()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
        }

        private void BaseFrm_Load(object sender, EventArgs e)
        {

        }

        private void BaseFrm_FormClosed(object sender, FormClosedEventArgs e)
        {
            //if (ApplicationExit)
            //{
            //    Application.Exit();
            //}
        }

        private void BaseFrm_FormClosing(object sender, FormClosingEventArgs e)
        {
            //if (ApplicationExit)
            //{
            //    DialogResult dr = MessageBox.Show("是否退出升级程序", "确认", MessageBoxButtons.YesNo);
            //    if (dr == DialogResult.No)
            //    {
            //        e.Cancel = true;
            //    }
            //}
        }
    }
}
